package com.huawei.base;

import com.sun.corba.se.impl.ior.OldJIDLObjectKeyTemplate;
import lombok.Data;

/**
 * @author 黄后林
 * @date 2022-11-03 15:09:00
 * @note 程序员是用代码喂出来的
 */
@Data
public class BaseRes {

    private String code;
    private String message;
    private Object data;

    public static BaseRes  getSuccess(Object data){
        BaseRes rs = new BaseRes();
        rs.setCode("200");
        rs.setMessage("success");
        rs.setData(data);
        return rs;
    }

}
